Feature Module
This is the parent class of all extensions.
Properties
Get the context in which this extension is running. The context is the mechanism by which the extension interfaces with the rest of the program.
A description of this extension, taken from the extension's metadata file
The full name of the extension; used to present the extension to the user.
Gets the file from which the extension was loaded (will be null if there was no external file used).
Functions
This is called when a data set is closed, so that the extension can let go of any references that it may have to the data or the GUI. If there are any windows open, they should be closed, and any state information should be discarded. Subclasses should override this if they maintain any state, or can have open windows. Subclasses should also use this method to deregister any listeners to the data set. NOTE: Moneydance does NOT currently call this method - use unload() instead!
Return a list of contextual actions (javax.swing.Action) that the extension can perform on target objects which are given in the context parameter, along with references to the kind of context and the UI object. The default implementation of this method returns an empty list. If you override it, please ensure that it returns quickly so that the context menu appearance remains snappy.
Returns a new / cloned copy of the ModuleMetaData (or null)
Return the contents of a resource/file at the given path that has been bundled with the extension
Notifies the extension that the given application event has occurred. More information on events triggered by Moneydance will be available at a later date.
This is called when an extension is invoked using a moneydance URI. Only the part of the URI after the extension identifier is included in the URI. For example, if the following URI is invoked: moneydance:module:taxman:show_summary:year=1999 then the invoke method of the "taxman" extension is called with the uri parameter set to: "show_summary:year=1999".
This is called when the extension is unloaded from the application. The implementation of this method should remove the extension as a listener from all parts of the application, and stop any threads that may have been started by the extension. Always use unload() as Moneydance does NOT currently call cleanup()